Appending to a specific element of a 2D array